import 'package:dartz/dartz.dart';
import 'package:equatable/equatable.dart';
import 'package:mobile_app.core/core/domain/entities/web_purchase_item/purchase_item.dart';

part 'failures.dart';

abstract class WebPurchaseApiService {
  Future<Either<PurchaseTokenGettingFailure, String?>> getPurchaseToken({
    required WebPurchaseItem webPurchaseItem,
    required String localizedWebPurchaseItemTitle,
    required int primaryColorValue,
  });

  Future<void> confirmPurchase({
    required String confirmationUrl,
  });
}
